<!-- 验光表 -->
<template>
  <div>
    <!--验光处方类型(1-远用,2-近用,3-隐形,4-渐进/双光,5-中用,6-角膜塑形镜,7-视觉训练,8-角膜塑形镜VST,9-角膜塑形镜CRT,10-RGP,11-药水)-->
    <!-- 远用 -->
    <table v-if="!optType || optType == 1" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">远用</th>
        <th>球镜</th>
        <th>柱镜</th>
        <th>轴向</th>
        <th>三棱镜</th>
        <th>基底</th>
        <th>远用瞳距(mm)</th>
        <th>瞳高(mm)</th>
        <th>远用VA</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOd"></el-input></td>
        <td>
          <el-select size="mini" class="table-select" v-model="optometryData.basisOd">
            <el-option v-for="item in bizData.basalTypeData" :value="item.value" :label="item.label" :key="item.value"></el-option>
          </el-select>
        </td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOs"></el-input></td>
        <td>
          <el-select size="mini" class="table-select" v-model="optometryData.basisOs">
            <el-option v-for="item in bizData.basalTypeData" :value="item.value" :label="item.label" :key="item.value"></el-option>
          </el-select>
        </td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOs"></el-input></td>
      </tr>
      <tr>
        <td colspan="3" class="colspan-td">
          <el-form label-width="120px">
          <el-form-item label="建议镜片材质">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestMaterial"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="处理方式">
            <el-input size="mini" class="table-input" v-model="optometryData.handleMethod"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="建议镜框">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestGlass"></el-input>
          </el-form-item>
          </el-form>
        </td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="8"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
      <tr>
        <th></th>
        <th>旧瞳距(mm)</th>
        <th>片高(mm)</th>
        <th>片宽(mm)</th>
        <th>中梁(mm)</th>
        <th>镜片通道(mm)</th>
        <th>对角线(mm)</th>
        <th>框型</th>
        <th>直径(mm)</th>
      </tr>
      <tr>
        <td>手动填写</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.oldPupilDistance"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipHeight"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipWidth"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.centreSill"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassesChannel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diagonal"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.frameModel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameter"></el-input></td>
      </tr>
    </table>
    <!-- 近用 -->
    <table v-if="optType == 2" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">近用</th>
        <th>球镜</th>
        <th>柱镜</th>
        <th>轴向</th>
        <th>三棱镜</th>
        <th>基底</th>
        <th>近用瞳距(mm)</th>
        <th>瞳高(mm)</th>
        <th>近用VA</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearPupilDistanceOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearUseOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearPupilDistanceOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearUseOs"></el-input></td>
      </tr>
      <tr>
        <td colspan="3" class="colspan-td">
          <el-form label-width="120px">
          <el-form-item label="建议镜片材质">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestMaterial"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="处理方式">
            <el-input size="mini" class="table-input" v-model="optometryData.handleMethod"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="建议镜框">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestGlass"></el-input>
          </el-form-item>
          </el-form>
        </td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="8"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
      <tr>
        <th></th>
        <th>旧瞳距(mm)</th>
        <th>片高(mm)</th>
        <th>片宽(mm)</th>
        <th>中梁(mm)</th>
        <th>镜片通道(mm)</th>
        <th>对角线(mm)</th>
        <th>框型</th>
        <th>直径(mm)</th>
      </tr>
      <tr>
        <td>手动填写</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.oldPupilDistance"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipHeight"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipWidth"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.centreSill"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassesChannel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diagonal"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.frameModel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameter"></el-input></td>
      </tr>
    </table>
    <!-- 渐进/双光 -->
    <table v-if="optType == 4" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">双光/渐进</th>
        <th>球镜</th>
        <th>柱镜</th>
        <th>轴向</th>
        <th>Add</th>
        <th>三棱镜</th>
        <th>基底</th>
        <th>远用瞳距(mm)</th>
        <th>近用瞳距(mm)</th>
        <th>瞳高(mm)</th>
        <th>远用VA</th>
        <th>近用VA</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.addOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearPupilDistanceOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearUseOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.addOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearPupilDistanceOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearUseOs"></el-input></td>
      </tr>
      <tr>
        <td colspan="3" class="colspan-td">
          <el-form label-width="120px">
          <el-form-item label="建议镜片材质">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestMaterial"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="处理方式">
            <el-input size="mini" class="table-input" v-model="optometryData.handleMethod"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="建议镜框">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestGlass"></el-input>
          </el-form-item>
          </el-form>
        </td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="11"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
      <tr>
        <th></th>
        <th>旧瞳距(mm)</th>
        <th>片高(mm)</th>
        <th>片宽(mm)</th>
        <th>中梁(mm)</th>
        <th>镜片通道(mm)</th>
        <th>对角线(mm)</th>
        <th>框型</th>
        <th>直径(mm)</th>
        <th>立线</th>
        <th>面弯</th>
        <th>前倾角</th>
      </tr>
      <tr>
        <td>手动填写</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.oldPupilDistance"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipHeight"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipWidth"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.centreSill"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassesChannel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diagonal"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.frameModel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameter"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.verticalLine"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.faceBending"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.frontRake"></el-input></td>
      </tr>
    </table>
    <!-- 中用 -->
    <table v-if="optType == 5" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">中用</th>
        <th>球镜</th>
        <th>柱镜</th>
        <th>轴向</th>
        <th>三棱镜</th>
        <th>基底</th>
        <th>中用瞳距(mm)</th>
        <th>瞳高(mm)</th>
        <th>中用VA</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.pupilHighOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOs"></el-input></td>
      </tr>
      <tr>
        <td colspan="3" class="colspan-td">
          <el-form label-width="120px">
          <el-form-item label="建议镜片材质">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestMaterial"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="处理方式">
            <el-input size="mini" class="table-input" v-model="optometryData.handleMethod"></el-input>
          </el-form-item>
          </el-form>
        </td>
        <td colspan="3" class="colspan-td">
          <el-form label-width="80px">
          <el-form-item label="建议镜框">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestGlass"></el-input>
          </el-form-item>
          </el-form>
        </td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="8"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
      <tr>
        <th></th>
        <th>旧瞳距(mm)</th>
        <th>片高(mm)</th>
        <th>片宽(mm)</th>
        <th>中梁(mm)</th>
        <th>镜片通道(mm)</th>
        <th>对角线(mm)</th>
        <th>框型</th>
        <th>直径(mm)</th>
      </tr>
      <tr>
        <td>手动填写</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.oldPupilDistance"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipHeight"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.chipWidth"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.centreSill"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassesChannel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diagonal"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.frameModel"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameter"></el-input></td>
      </tr>
    </table>
    <!-- 隐形 -->
    <table v-if="optType == 3" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">隐形</th>
        <th>BC</th>
        <th>球镜</th>
        <th>柱镜</th>
        <th>轴向</th>
        <th>曲率</th>
        <th>直径</th>
        <th>隐形VA</th>
        <th>适用镜片</th>
        <th>片/盒数</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.curvatureOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameterOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.invisibleOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.suitableGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.numberBoxOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.curvatureOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameterOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.invisibleOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.suitableGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.numberBoxOs"></el-input></td>
      </tr>
      <tr>
        <td colspan="9" class="colspan-td">
          <el-form label-width="120px">
          <el-form-item label="建议护理液">
            <el-input size="mini" class="table-input" v-model="optometryData.suggestMaterial"></el-input>
          </el-form-item>
          </el-form>
        </td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="9"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
    </table>
    <!-- 角膜塑形镜 -->
    <table v-if="optType == 6" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">角膜塑形镜</th>
        <th>球镜</th>
        <th>柱镜</th>
        <th>轴向</th>
        <th>平K</th>
        <th>陡K</th>
        <th>e值</th>
        <th>角膜直径</th>
        <th>试戴片K</th>
        <th>K1</th>
        <th>K2</th>
        <th>光度</th>
        <th>降幅</th>
        <th>直径</th>
        <th>适用镜片</th>
        <th>片/盒数</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.smoothKOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.steepKOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.valueEOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.cornealDiameterOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.tryKOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.k1Od"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.k2Od"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.luminosityOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.declineOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameterOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.suitableGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.numberBoxOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.smoothKOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.steepKOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.valueEOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.cornealDiameterOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.tryKOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.k1Os"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.k2Os"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.luminosityOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.declineOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diameterOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.suitableGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.numberBoxOs"></el-input></td>
      </tr>
    </table>
    <!-- 视觉训练 -->
    <table v-if="optType == 7" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">视觉训练</th>
        <th>球镜</th>
        <th>柱镜</th>
        <th>轴向</th>
        <th>三棱镜</th>
        <th>基底</th>
        <th>远用瞳距(mm)</th>
        <th>近用瞳距(mm)</th>
        <th>远用VA</th>
        <th>近用VA</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearPupilDistanceOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearUseOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.ballGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.postGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.axesOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.arriseGlassOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.basisOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farPupilDistanceOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearPupilDistanceOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.farUseOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.nearUseOs"></el-input></td>
      </tr>
    </table>
    <!-- 角膜塑形镜VST -->
    <table v-if="optType == 8" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">角膜塑形镜VST</th>

        <th>试戴片编号</th>
        <th>FK</th>
        <th>曲率半径</th>
        <th>AC</th>
        <th>降幅</th>
        <th>DIA</th>
        <th>BC</th>
        <th>CP/CLY</th>
        <th>e值</th>
        <th>VA</th>
        <th>镜片颜色</th>
        <th>品牌</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.tryNumberOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.fkOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.curvatureRadiusOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.acOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.declineOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diaOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.cpClyOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.valueEOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.vaOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassColorOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.brandOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.tryNumberOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.fkOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.curvatureRadiusOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.acOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.declineOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diaOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.cpClyOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.valueEOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.vaOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassColorOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.brandOs"></el-input></td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="9"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
    </table>
    <!-- 角膜塑形镜CRT -->
    <table v-if="optType == 9" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">角膜塑形镜CRT</th>

        <th>试戴片编号</th>
        <th>BC</th>
        <th>RZD</th>
        <th>LZA</th>
        <th>RZD2</th>
        <th>LZA2</th>
        <th>降幅</th>
        <th>DIA</th>
        <th>VA</th>
        <th>镜片颜色</th>
        <th>品牌</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.tryNumberOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.rzdOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.lzaOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.rzdOd2"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.lzaOd2"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.declineOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diaOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.vaOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassColorOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.brandOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.tryNumberOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.rzdOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.lzaOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.rzdOs2"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.lzaOs2"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.declineOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diaOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.vaOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassColorOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.brandOs"></el-input></td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="9"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
    </table>
    <!-- RGP -->
    <table v-if="optType == 10" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <th class="width-145">RGP</th>

        <th>屈光度</th>
        <th>BC</th>
        <th>DIA</th>
        <th>散光</th>
        <th>镜片颜色</th>
        <th>特殊设计</th>
        <th>品牌</th>
      </tr>
      <tr style="text-align: center;">
        <td>OD</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diopterOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diaOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.astigmiaOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassColorOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.specialDesignOd"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.brandOd"></el-input></td>
      </tr>
      <tr>
        <td>OS</td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diopterOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.bcOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.diaOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.astigmiaOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.glassColorOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.specialDesignOs"></el-input></td>
        <td><el-input size="mini" class="table-input" v-model="optometryData.brandOs"></el-input></td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="9"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
    </table>
    <!-- 药品 -->
    <table v-if="optType == 11" class="miui-table" bgcolor="#dfffdf">
      <tr>
        <td class="width-145">备注</td>
        <td colspan="9"><el-input size="mini" type="textarea" :rows="1" v-model="optometryData.memo"></el-input></td>
      </tr>
    </table>
  </div>
</template>

<script>
  import { mapGetters } from 'vuex'
  export default {
    props:['optometryData','optType'],
    data () {
      return {
      }
    },
    computed:{
      ...mapGetters(['bizData'])
    },
    methods:{
    }
  }
</script>

<style lang="scss" scoped>
  .miui-table {
    width: 100%;
    .table-input {
     // width: 50px;
    }
    .table-select {
      width: 90px;
    }
    .el-table--enable-row-hover .el-table__body tr:hover>td {
      background-color: #97baf6;
    }
    .width-145 {
      width: 145px;
    }

    tr td,
    tr th {
      border: 2px solid #EFEEF5;
      text-align: center;
      padding: 5px 5px;
    }

    .colspan-td {
      text-align: left !important;
    }
  }
</style>
